package com.itheima.tanhua.interceptor;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * @author 芝士雪豹
 * @create 2022/9/20/20:23
 */
@Configuration
public class TanhuaInterceptorConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new TanhuaInterceptor()).addPathPatterns(
                "/**"
        ).excludePathPatterns(
                "/user/login",
                "/user/loginVerification"
        );
    }
}
